import 'package:flutter/material.dart';
import 'package:get/get.dart';

/// 认证页面头部组件
class AuthHeader extends StatelessWidget {
  final String title;
  final String subtitle;
  
  const AuthHeader({
    Key? key,
    required this.title,
    required this.subtitle,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        const SizedBox(height: 20),
        // Logo 或 应用图标
        Center(
          child: Container(
            width: 80,
            height: 80,
            decoration: BoxDecoration(
              color: Get.theme.primaryColor.withOpacity(0.1),
              borderRadius: BorderRadius.circular(16),
            ),
            child: Icon(
              Icons.cloud_queue, // 替换为您的Logo图标
              size: 48,
              color: Get.theme.primaryColor,
            ),
          ),
        ),
        const SizedBox(height: 30),
        // 标题
        Text(
          title,
          style: Get.textTheme.headlineMedium?.copyWith(
            fontWeight: FontWeight.bold,
          ),
        ),
        const SizedBox(height: 8),
        // 副标题
        Text(
          subtitle,
          style: Get.textTheme.titleMedium?.copyWith(
            color: Colors.grey[600],
          ),
        ),
      ],
    );
  }
} 